﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tank
{
    class NotMoveing : ClassObject
    {
        private Image img;
        public Image Img { get { return img; } 
            set { img = value;
                // 获取图片的宽和高
                Width = img.Width;
                Height = img.Height;
            } }

        protected override Image GetImage()
        {
            return Img;
        }
        // 不可移动的物体
        public NotMoveing(int x, int y, Image image)
        {
            this.X = x;
            this.Y = y;
            this.Img = image;

        }
    }
}
